/***************************************************************************
 *          qdefaulthhchandler.h - CHM hhc file parser                       *
 *                           -------------------                           *
 *                                                                         *
 *  author:     Nestle <zhurx4g@gmail.com>                         *
 *  notes:      This is a quick hhc file parser.           *
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Lesser General Public License as        *
 *   published by the Free Software Foundation; either version 2.1 of the  *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef QDEFAULTHHCHANDLER_H
#define QDEFAULTHHCHANDLER_H

#include <QObject>
#include <QMap>
#include <QFile>
#include "qhhchandler.h"

#if defined(QTCHM_LIBRARY)
#  define QTCHMSHARED_EXPORT Q_DECL_EXPORT
#else
#  define QTCHMSHARED_EXPORT Q_DECL_IMPORT
#endif


class QTCHMSHARED_EXPORT QDefaultHHCHandler : public QHHCHandler
{
public:
    QDefaultHHCHandler();
    virtual ~QDefaultHHCHandler();
    virtual void startElement(const QString& tagName,const QMap<QString,QString>& attr);
    virtual void endElement(const QString& tagName);
    virtual void* getTopics();
private:
    void* result;
    int depth;
};

#endif // QDEFAULTHHCHANDLER_H
